<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<script src="${pageContext.request.contextPath}/js/Echarts/china.js"></script>
<div ng-controller="targetConfigController as controller">
	<div class="wrap">
		<div class="mapTips">
			<h6>
				<i class="glyphicon glyphicon-cog"></i> <span>条件设置</span>
			</h6>
		</div>
		<div class="conditionWrap">
			<div class="wrapFirst" style="height:57px;margin-bottom:50px;margin-top:10px">
				<form role="from" name="tableForm" class="form-horizontal">
					<div class="from-group">
						<div class="row">
							<div class="col-md-6 col-sm-6 col-xs-6">
								<label for="input-userNo_search" class="control-label" style="padding: 17px 6px 0 4%;float:left;">指标配置:</label>
								<select style="width: 35%; height: 34px;border-radius: 4px;margin-top: 10px;" ng-model="controller.queryCondition.monitoringIndex" >
									<option value="">全部</option>
									<option ng-repeat="index in controller.indexList" value={{index}}>{{index}}</option>
								</select>
							</div>
							<div class="col-md-6 col-sm-6 col-xs-6" style="padding-left:20%;">
								<a class="btn btn-primary searchBtn" style="margin:12px;"
									ng-click="controller.search()"> <!-- <i class="fa fa-search"></i> -->搜索
								</a>
								<a class="btn btn-danger" ng-click="controller.reset()"> <!-- <i
										class="fa fa-search"></i> -->重置
								</a>
							</div>
						</div>
						<div style="padding: 10px 0 0 3%;">
							<button class="btn btn-primary" ng-click="controller.saveConfig()" type="button" style="margin-right:8px">保存配置</button>
							<button class="btn btn-default" type="button" style="marin-right:8px;">新增配置</button>
							<button class="btn btn-default" type="button">删除配置</button>
						</div>
						
					</div>
				</form>
			</div>
		</div>
		<div class="mapBottom table-bordered"
			style="font-size: 13px; background: white;">
			<table class="table table-bordered" style="font-size: 13px;">
				<tr>
					<td align="center"><input type="checkbox" id="check_all"/></td>
					<td align="center" >监控指标测试</td>
					<td align="center">KPI</td>
					<td align="center">级别1管控值</td>
					<td align="center">级别2管控值</td>
					<td align="center">级别3管控值</td>
				</tr>
				<tr ng-repeat="data in controller.warningConfigList">
					<td align="center"><input type="checkbox" class="check_item" />
						<input type="hidden" vlaue={{data.id}} id="id"></td>
					
					<td align="center">{{data.desc}}</td>
					<td align="center">{{data.name}}</td>
					
					<td align="center"><input type="text"
								 id="lv1_low"  value={{data.lv1min}} style="height:21px;width: 27%;padding: 0px 0px;font-size: 1px">-
						<input type="text"
								 id="lv1_high"  value={{data.lv1max}} style="height:21px;width: 27%;padding: 0px 0px;font-size: 1px">
					</td>
					
					
					<td align="center"><input type="text"
								 id="lv2_low"  value={{data.lv2min}} style="height:21px;width:27%;padding: 0px 0px;font-size: 1px">-
						<input type="text"
								 id="lv2_high"  value={{data.lv2max}} style="height:21px;width: 27%;padding: 0px 0px;font-size: 1px">
					</td>
				
					<td align="center"><input type="text"
								 id="lv3_low"  value={{data.lv3min}} style="height:21px;width: 27%;padding: 0px 0px;font-size: 1px">-
						<input type="text"
								 id="lv3_high"  value={{data.lv3max}} style="height:21px;width: 27%;padding: 0px 0px;font-size: 1px">
					</td>
					
				
					</tr>
			</table>
			<div class="spagination "
				style="left: 305px; top: -12px; float: left; width: 1105px; position: relative;">
<!-- 				分页文字信息  -->
				<div class=""
					style="top: 25px; width: 100px; position: absolute; right: 1078px; float: left;">总
					{{controller.paginationInfo.totalElements}}条记录</div>
				<div style="position: absolute; left: 0px;">
					<ul uib-pagination
						total-items="controller.paginationInfo.totalPages"
						ng-model="controller.queryCondition.page"
						max-size="controller.paginationInfo.maxSize" class="pagination-md"
						boundary-links="true" items-per-page="1" rotate="false"
						ng-change="controller.pageChanged();" previous-text="上一页"
						next-text="下一页" first-text="首页" last-text="最后一页"></ul>
					<div class="col-md-1"
						style="top: 27px; left: 98%; width: 117px; position: absolute;">
						跳转
						<div class="col-md-1"
							style="left: 29%; float: left; top: 21px; position: absolute;">
							<input ng-model="controller.queryCondition.forwordPage"
								ng-keyup="enterEvent($event)" type="text" class="form-control"
								style="height: 33px; width: 50px; top: -28px; position: absolute;">
						</div>
						<div style="position: absolute; top: 0px; left: 94%;">页</div>

					</div>
				</div>
			</div>
		</div>
		
	</div>
</div>